package com.cvo.scrumtoolkit.client.pannels;

import java.util.ArrayList;
import java.util.List;

import com.cvo.scrumtoolkit.client.entities.BacklogItem;
import com.cvo.scrumtoolkit.client.entities.Project;
import com.cvo.scrumtoolkit.client.entities.WorkItem;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;




//The RemoteServiceRelativePath annotation must match the servlet URL configured in
//web.xml
@RemoteServiceRelativePath("persistentservice")

//public interface BlobService extends RemoteService {
public interface PersistentService extends RemoteService {
    
    void persistProject(String projectnaam, String scrummaster) throws IllegalArgumentException;

    public ArrayList<Project> searchProjects();

	void register();
	
	public void persistBacklogitem(String naam, int uur, String pid);

	int getNumberOfItems(Project project) throws Exception;	
	public void setSprintInBacklogitem(String naam,int i);
	public int setSprintsInProject(String naam);
	public int getSprintsInProject(String naam);
	public List<BacklogItem> getItemsinSprint(String project,int sprint) throws Exception;
	public void persistWorkitem(String backlogItem,String naam,String developper);
	public void setStatus(String workItem,String status);
	public List<WorkItem>getWorkItems(String backlogitem);
	List<BacklogItem> getItems(String project) throws Exception;
	public void setWerkuren(String workItem,int werkuren);
}
